package com.mvc.demo.web;


import com.tools.hry.xls.analysis.annotation.ExcelEntity;
import com.tools.hry.xls.analysis.annotation.ExcelProperty;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by 峥桂 on 2017/1/12.
 */

@ExcelEntity(isRemoved = true,setThrowExceptionNum =5,rule = ClaimsDataCheckRule.class)
public class ClaimsExcelBeanRead {

    @ExcelProperty(value = "投保企业")
    private String appntEnp;// 投保企业

    @ExcelProperty(value = "保单号",required=true)
    private String code;//保单号
    @ExcelProperty(value = "赔案号",required=true)
    private String paymentCaseCode;//  赔案号
    @ExcelProperty(value = "出险人姓名")
    private String dangerName;// 出险人姓名
    @ExcelProperty(value = "出险人证件号",isBaseDataChecked = false)
    private String dangerIdCard;// 出险人证件号
    @ExcelProperty(value = "申请日期")
    private Date applyCreateTime;  //报案日期
    @ExcelProperty(value = "结案日期")
    private Date closeCreateTime;// 结案日期
    @ExcelProperty(value ="结案金额")
    private BigDecimal closeMoney;// 结案金额
    @ExcelProperty(value = "理赔结论")
    private String cliamsResult;// 理赔结论
    @ExcelProperty(value = "账单金额")
    private BigDecimal billMoney;// 账单金额
    @ExcelProperty(value = "出险原因")
    private String dangerCauses;// 	出险原因
    @ExcelProperty(value = "结论原因")
    private String resultReason;// 结论原因

//    @ExcelProperty(value = "投保人名称")
    private String appntName;//

//    @ExcelProperty(value = "主被保人姓名")
    private String mainInsuredName;// 主被保人姓名

//    @ExcelProperty(value = "主被保人证件号")
    private String mainInsuredIdCard;//主被保人证件号

//    @ExcelProperty(value = "案件状态")
    private String state;// 案件状态


    public String getPaymentCaseCode() {
        return paymentCaseCode;
    }

    public void setPaymentCaseCode(String paymentCaseCode) {
        this.paymentCaseCode = paymentCaseCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDangerCauses() {
        return dangerCauses;
    }

    public void setDangerCauses(String dangerCauses) {
        this.dangerCauses = dangerCauses;
    }

    public String getAppntName() {
        return appntName;
    }

    public void setAppntName(String appntName) {
        this.appntName = appntName;
    }

    public String getDangerName() {
        return dangerName;
    }

    public void setDangerName(String dangerName) {
        this.dangerName = dangerName;
    }

    public String getDangerIdCard() {
        return dangerIdCard;
    }

    public void setDangerIdCard(String dangerIdCard) {
        this.dangerIdCard = dangerIdCard;
    }

    public String getMainInsuredName() {
        return mainInsuredName;
    }

    public void setMainInsuredName(String mainInsuredName) {
        this.mainInsuredName = mainInsuredName;
    }

    public String getMainInsuredIdCard() {
        return mainInsuredIdCard;
    }

    public void setMainInsuredIdCard(String mainInsuredIdCard) {
        this.mainInsuredIdCard = mainInsuredIdCard;
    }

    public Date getApplyCreateTime() {
        return applyCreateTime;
    }

    public void setApplyCreateTime(Date applyCreateTime) {
        this.applyCreateTime = applyCreateTime;
    }

    public Date getCloseCreateTime() {
        return closeCreateTime;
    }

    public void setCloseCreateTime(Date closeCreateTime) {
        this.closeCreateTime = closeCreateTime;
    }

    public BigDecimal getBillMoney() {
        return billMoney;
    }

    public void setBillMoney(BigDecimal billMoney) {
        this.billMoney = billMoney;
    }

    public BigDecimal getCloseMoney() {
        return closeMoney;
    }

    public void setCloseMoney(BigDecimal closeMoney) {
        this.closeMoney = closeMoney;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getCliamsResult() {
        return cliamsResult;
    }

    public void setCliamsResult(String cliamsResult) {
        this.cliamsResult = cliamsResult;
    }

    public String getResultReason() {
        return resultReason;
    }

    public void setResultReason(String resultReason) {
        this.resultReason = resultReason;
    }

    public String getAppntEnp() {
        return appntEnp;
    }

    public void setAppntEnp(String appntEnp) {
        this.appntEnp = appntEnp;
    }

    @Override
    public String toString() {
        applyCreateTime =(applyCreateTime==null)? null:applyCreateTime;
        closeCreateTime =(closeCreateTime==null)? null:closeCreateTime;
        return "ClaimsExcelBean{" +
                "paymentCaseCode='" + paymentCaseCode + '\'' +
                ", code='" + code + '\'' +
                ", dangerCauses='" + dangerCauses + '\'' +
                ", appntName='" + appntName + '\'' +
                ", appntEnp='" + appntEnp + '\'' +
                ", dangerName='" + dangerName + '\'' +
                ", dangerIdCard='" + dangerIdCard + '\'' +
                ", mainInsuredName='" + mainInsuredName + '\'' +
                ", mainInsuredIdCard='" + mainInsuredIdCard + '\'' +
                ", applyCreateTime=" + ((applyCreateTime==null)? "":applyCreateTime.toLocaleString()) +
                ", closeCreateTime=" + ((closeCreateTime==null)? "":closeCreateTime.toLocaleString())  +
                ", billMoney=" + billMoney +
                ", closeMoney=" + closeMoney +
                ", state='" + state + '\'' +
                ", cliamsResult='" + cliamsResult + '\'' +
                ", resultReason='" + resultReason + '\'' +
                "}\r\n";
    }
}
